package com.grain.security.rbac.service;

import com.grain.security.rbac.dto.AdminCondition;
import com.grain.security.rbac.dto.AdminInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface AdminService {
    AdminInfo create(AdminInfo adminInfo);

    AdminInfo update(AdminInfo adminInfo);

    void delete(Long id);

    AdminInfo getInfo(Long id);

    Page<AdminInfo> query(AdminCondition adminCondition, Pageable pageable);
}
